<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <!-- v-model 双向绑定单选框 -->
    <div id="app">
        <label for="man">
            <input type="radio" id="man"  value="男" v-model="sexName">男
        </label>
        <label for="woman">
            <input type="radio" id="woman"  value="女" v-model="sexName">女
        </label>
        <div>{{ sexName }}</div>
    </div>
    <script src="../js/vue.js"></script>
    <script>
        const app = new Vue({
            el:'#app',
            data(){
                return {
                    sexName:'男'
                }
            }
        })
    </script>
</body>
</html>